import os


BASE_DIR = os.path.dirname(os.path.abspath(__file__))

HARDWARE_CLASS_DICT = {
    'disk': 'utils.hardware.disk.Disk',
    'memory': 'utils.hardware.memory.Memory',
    'board': 'utils.hardware.board.Board',
    'basic': 'utils.hardware.basic.BasicMsg',
    'cpu': 'utils.hardware.cpu.Cpu',
    'network_card': 'utils.hardware.network_card.NetWorkCard',
}

SSH_PORT = 22
SSH_USERNAME = 'hxw'
SSH_PASSWORD = '2360'

LOG_PATH = os.path.join(BASE_DIR, 'log/cmdb.log')

GET_HOST_LIST = 'http://127.0.0.1:8002/api/host/'
POST_HOST_MSG = 'http://127.0.0.1:8002/api/submit/'
